import request from '../../util/axios'

// 分页查询全宗号
export const getQzDic = (data) => request({
  url: '/yuyi-config-boot/api/config/fondsNo/paging',
  method: 'post',
  data
})

// 查询全宗集合
export const getQzAggregate = (data) => {
  let url = '/yuyi-config-boot/api/config/fondsNo/list'
  if (data) {
    url = `/yuyi-config-boot/api/config/fondsNo/list?fondsName=${data}`
  }
  return request({
    url: url
  })
}

// 新增全宗号
export const addQzDic = (data) => request({
  url: '/yuyi-config-boot/api/config/fondsNo',
  method: 'post',
  data
})

// 修改全宗号
export const editQzDic = (data) => request({
  url: '/yuyi-config-boot/api/config/fondsNo',
  method: 'put',
  data
})

// 批量删除全宗号
export const delQzDic = (data) => request({
  url: '/yuyi-config-boot/api/config/fondsNo',
  method: 'delete',
  data
})
